package com.lcq.study.normal;

import java.util.ArrayList;
import java.util.List;

/**
 * @ClassName NullPointTest
 * @Description
 * @Author lichuanqi
 * @Date 2021/6/16 16:12
 * @Version 1.0
 **/
public class NullPointTest {
    public static void main(String[] args) {
        //test1();
        test2();
    }

    static void test1() {
        List<String> list1 = null;
        List<String> list = new ArrayList<>();
        list.addAll(list1);
    }

    static void test2() {
        List<String> list1 = null;
        for (String item : list1) {
            System.out.println("1111");
        }
    }
}
